

//  IntegerDetailTBVCell.m
//  XJMCustomer
//
//  Created by Mr.hu on 2017/10/13.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "IntegerDetailTBVCell.h"

@implementation IntegerDetailTBVCell

- (void)setData:(NSDictionary *)dict{
    
    self.account_item.text = dict[@"goods_name"];
    NSString * fromstr = [NSString stringWithFormat:@"%@",dict[@"from"]];
    
    if ([fromstr isEqualToString:@"1"]) {
        self.account_price.text = [NSString stringWithFormat:@" +%@",dict[@"change_money"]];
        self.account_price.textColor = RGBA(213, 32, 30, 1);
        
    }else{
        self.account_price.text = [NSString stringWithFormat:@" -%@",dict[@"change_money"]];
        self.account_price.textColor = [UIColor blackColor];
    }
    
    NSString * statusstr = [NSString stringWithFormat:@"%@",dict[@"goods_name"]];
    if ([statusstr isEqualToString:@"收入提现"]) {
        self.Audit_LabInformation.text = @"(审核中)";
        self.Audit_LabInformation.textColor = RGBA(89, 88, 87, 1);
    }else if([statusstr isEqualToString:@"1"]){
        self.Audit_LabInformation.text = [NSString stringWithFormat:@"(审核通过)"];
    }else if([statusstr isEqualToString:@"1"]){
        self.Audit_LabInformation.text = [NSString stringWithFormat:@"(驳回)"];
    }else{
        self.Audit_LabInformation.text = @"";
    }
    
//    self.account_time.text = [XJToolClass stringFromTimeInterval:[dict[@"add_time"] integerValue]/1000];
    self.account_time.text = dict[@"add_time"];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
